package com.jqq.homework;

/**
 * @author 姬倩倩
 * @version 1.0
 */
public class Homework05 {
    public static void main(String[] args) {
        A a = new A("smith");
        a.say();
    }
}
class A{
    private String name;

    public A(String name) {
        this.name = name;
    }

    public void say() {
        class B {
            private final String name = "jack";

            public void show() {
                System.out.println("B.name=" + name);
                System.out.println("A.name=" + A.this.name);
            }
        }
        new B().show();
    }
}